/**
 * 
 */
package com.iwords.service.object;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

import com.oasis.iwords.lucene.annotation.IndexField;

/**
 * @author qianxiang
 * 
 */
@Entity
@Table(name = "examitems")
public class ExamItemsEntity implements Serializable {
	@IndexField("iid")
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long itemid;
	@IndexField("eid")
	private Long examid;

	private Long itemno;
	@IndexField("iname")
	private String itemname;
	@IndexField("itype")
	private Integer itemtype;
	@IndexField("item")
	private String itemcontent;

	private String audio;

	@Temporal(javax.persistence.TemporalType.TIMESTAMP)
	private Date createtime;
	@Temporal(javax.persistence.TemporalType.TIMESTAMP)
	private Date updatetime;

	public Long getItemid() {
		return itemid;
	}

	public void setItemid(Long itemid) {
		this.itemid = itemid;
	}

	public Long getExamid() {
		return examid;
	}

	public void setExamid(Long examid) {
		this.examid = examid;
	}

	public Long getItemno() {
		return itemno;
	}

	public void setItemno(Long itemno) {
		this.itemno = itemno;
	}

	public String getItemname() {
		return itemname;
	}

	public void setItemname(String itemname) {
		this.itemname = itemname;
	}

	public Integer getItemtype() {
		return itemtype;
	}

	public void setItemtype(Integer itemtype) {
		this.itemtype = itemtype;
	}

	public String getItemcontent() {
		return itemcontent;
	}

	public void setItemcontent(String itemcontent) {
		this.itemcontent = itemcontent;
	}

	public String getAudio() {
		return audio;
	}

	public void setAudio(String audio) {
		this.audio = audio;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	@Override
	public String toString() {
		return "ExamItems [itemid=" + itemid + ", examid=" + examid + ", itemno=" + itemno + ", itemname=" + itemname + ", itemtype=" + itemtype + ", itemcontent=" + itemcontent
				+ "]";
	}

}
